package ee.videorentalstore.protocols.commands;

import ee.videorentalstore.UserAndProtocolManager;
import ee.videorentalstore.UserAndProtocolManagerStatus;
import ee.videorentalstore.protocols.types.ChanginSystemUserProtocol;

public class ChangeSystemUserCommand extends Command
{
	@Override
	public String getCommandDescription() 
	{
		return "CHANGE USER";
	}
	
	
	@Override
	public void executeCommand(String inputStreamInstructionsToProcess) 
	{
		UserAndProtocolManager.getInstance().setProtocolToUse(new ChanginSystemUserProtocol());
		UserAndProtocolManager.getInstance().setUserAndProtocolManagerStatus(
				UserAndProtocolManagerStatus.CHANGING_USER_AND_PROTOCOL);
		System.out.println("Protocol for changing user currently in control was started!");
	}
}
